<?php

/**
 * 栏目管理
 */
Route::get('entity/column/columns', ['as'=> 'entity.column.columns.index', 'uses' => 'Entity\Column\ColumnController@index']);
Route::post('entity/column/columns', ['as'=> 'entity.column.columns.store', 'uses' => 'Entity\Column\ColumnController@store']);
Route::get('entity/column/columns/create', ['as'=> 'entity.column.columns.create', 'uses' => 'Entity\Column\ColumnController@create']);
Route::put('entity/column/columns/{columns}', ['as'=> 'entity.column.columns.update', 'uses' => 'Entity\Column\ColumnController@update']);
Route::patch('entity/column/columns/{columns}', ['as'=> 'entity.column.columns.update', 'uses' => 'Entity\Column\ColumnController@update']);
Route::delete('entity/column/columns/{columns}', ['as'=> 'entity.column.columns.destroy', 'uses' => 'Entity\Column\ColumnController@destroy']);
Route::get('entity/column/columns/{columns}', ['as'=> 'entity.column.columns.show', 'uses' => 'Entity\Column\ColumnController@show']);
Route::get('entity/column/columns/{columns}/edit', ['as'=> 'entity.column.columns.edit', 'uses' => 'Entity\Column\ColumnController@edit']);
// 栏目发布
// Route::get('entity/column/columns/publish/view', ['as'=> 'entity.column.columns.publish', 'uses' => 'Entity\Column\ColumnController@publish']);

// 根据推荐模板类型,获取不同类型下的模板
Route::get('entity/column/columns/recommend_types/recommend_templates', ['as'=> 'entity.column.recommend_types.recommend_templates', 'uses' => 'Entity\Column\ColumnController@getTemplatesByRecommendType']);

/**
 * 栏目上线, 下线, 发布
 */
// 栏目全部上线
Route::get('entity/column/columns/all_up/view', [
    'as'=> 'entity.column.columns.all_up', 
    'uses' => 'Entity\Column\ColumnController@allUp'
]);
// 栏目全部下线
Route::get('entity/column/columns/all_down/view', [
    'as'=> 'entity.column.columns.all_down', 
    'uses' => 'Entity\Column\ColumnController@allDown'
]);
// 栏目全部上线发布
Route::get('entity/column/columns/publish/view', [
    'as'=> 'entity.column.columns.publish', 
    'uses' => 'Entity\Column\ColumnController@publish'
]);
// 栏目全部下线发布
Route::get('entity/column/columns/publish_down/view', [
    'as'=> 'entity.column.columns.publish_down', 
    'uses' => 'Entity\Column\ColumnController@publishDown'
]);
// 单个,批量上线
Route::post('entity/column/columns/up/view', [
    'as'=> 'entity.column.columns.up', 
    'uses' => 'Entity\Column\ColumnController@batchModerate'
]);
// 单个,批量下线
Route::post('entity/column/columns/down/view', [
    'as'=> 'entity.column.columns.down', 
    'uses' => 'Entity\Column\ColumnController@batchModerate'
]);
// 单个,批量发布
Route::post('entity/column/columns/publish_one_or_more/view', [
    'as'=> 'entity.column.columns.publish_one_or_more', 
    'uses' => 'Entity\Column\ColumnController@batchModerate'
]);
// 单个,批量下线发布
Route::post('entity/column/columns/publish_down_one_or_more/view', [
    'as'=> 'entity.column.columns.publish_down_one_or_more',
    'uses' => 'Entity\Column\ColumnController@batchModerate'
]);
// 查询进度
Route::get('entity/column/columns/progress/view', [
    'as'=> 'entity.column.columns.progress', 
    'uses' => 'Entity\Column\ColumnController@queryProgress'
]);



/**
 * 一级栏目-点播媒资
 */
// 编辑媒资界面
Route::get('entity/column/columns/{columns}/edit/asset', ['as'=> 'entity.column.columns.edit_asset', 'uses' => 'Entity\Column\ColumnController@editAsset']);
// 媒资数据
Route::post('entity/column/columns/asset/data', ['as'=> 'entity.column.columns.vasset_data', 'uses' => 'Entity\Column\ColumnController@vassetiData']);
// 已选的媒资数据
Route::post('entity/column/columns/asset/selected', ['as'=> 'entity.column.columns.selected_vasseti', 'uses' => 'Entity\Column\ColumnController@selectedVasseti']);
// 添加单个媒资|添加多个媒资
Route::post('entity/column/columns/asset/add', ['as'=> 'entity.column.columns.add_asset', 'uses' => 'Entity\Column\ColumnController@addVasseti']);
// 删除单个媒资|删除多个媒资
Route::post('entity/column/columns/asset/delete', ['as'=> 'entity.column.columns.deltete_asset', 'uses' => 'Entity\Column\ColumnController@deleteVasseti']);
